#include "Lock.h"

Lock::Lock(CRITICAL_SECTION& section)
	:
	m_criticalSection(section)
{
	EnterCriticalSection(&m_criticalSection);
}
Lock::~Lock(void)
{
	LeaveCriticalSection(&m_criticalSection);
}